package com.tensquare.dto;

import java.util.List;

/**
 * 封装分页数据
 * @author Johnny.Chen
 *
 */
public class PageResult<T> {

	private Long total; //总记录数
	private List<T> rows;//封装当前页的数据
	
	//有参
	public PageResult(Long total, List<T> rows) {
		super();
		this.total = total;
		this.rows = rows;
	}
	
	//无参
	public PageResult() {
		super();
	}
	
	
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public List<T> getRows() {
		return rows;
	}
	public void setRows(List<T> rows) {
		this.rows = rows;
	}
}
